<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Script::Literal</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (L)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Script.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script.html" title="Sass::Script (module)">Script</a></span>
     &raquo; 
    <span class="title">Literal</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Script/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Script/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Script::Literal 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Node</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Node</a></li>
          
            <li class="next">Sass::Script::Literal</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/script/literal.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>The abstract superclass for SassScript objects.</p>

<p>Many of these methods, especially the ones that correspond to SassScript operations, are designed to be overridden by subclasses which may change the semantics somewhat. The operations listed here are just the defaults.</p>

  </div>
</div>
<div class="tags">
  
</div><div id="subclasses">
  <h2>Direct Known Subclasses</h2>
  <p class="children"><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a>, <a href="Color.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Color.html" title="Sass::Script::Color (class)">Color</a>, <a href="List.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/List.html" title="Sass::Script::List (class)">List</a>, <a href="Null.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Null.html" title="Sass::Script::Null (class)">Null</a>, <a href="Number.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Number.html" title="Sass::Script::Number (class)">Number</a>, <a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></p>
</div>


  
  
  
  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  

  
    <span class="summary_desc">Returns the Ruby value of the literal.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#%3D%3D-instance_method" title="#== (instance method)">- (Boolean) <strong>=</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Compares this object with another.</span>
  
</li>

    
      <li class="protected ">
  <span class="summary_signature">
    
      <a href="#_perform-instance_method" title="#_perform (instance method)">- (Literal) <strong>_perform</strong>(environment) </a>
    

    
  </span>
  
  
  <span class="note title protected">protected</span>
  
  

  
    <span class="summary_desc">Evaluates the literal.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#assert_int%21-instance_method" title="#assert_int! (instance method)">- <strong>assert_int!</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#children-instance_method" title="#children (instance method)">- (Array&lt;Node&gt;) <strong>children</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns an empty array.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#comma-instance_method" title="#comma (instance method)">- (Script::String) <strong>comma</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>,</code> operation (e.g. <code>$a, $b</code>, <code>&quot;foo&quot;, &quot;bar&quot;</code>).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#deep_copy-instance_method" title="#deep_copy (instance method)">- <strong>deep_copy</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#div-instance_method" title="#div (instance method)">- (Script::String) <strong>div</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>/</code> operation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#eq-instance_method" title="#eq (instance method)">- (Bool) <strong>eq</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>==</code> operation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (Literal) <strong>initialize</strong>(value = nil) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">Creates a new literal.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#inspect-instance_method" title="#inspect (instance method)">- (String) <strong>inspect</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">A readable representation of the literal.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#minus-instance_method" title="#minus (instance method)">- (Script::String) <strong>minus</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>-</code> operation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#neq-instance_method" title="#neq (instance method)">- (Bool) <strong>neq</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>!=</code> operation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#null%3F-instance_method" title="#null? (instance method)">- (Boolean) <strong>null?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns whether or not this object is null.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#options-instance_method" title="#options (instance method)">- ({Symbol =&gt; Object}) <strong>options</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns the options hash for this node.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#plus-instance_method" title="#plus (instance method)">- (Script::String) <strong>plus</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>+</code> operation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#single_eq-instance_method" title="#single_eq (instance method)">- (Script::String) <strong>single_eq</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>=</code> operation (used for proprietary MS syntax like <code>alpha(opacity=20)</code>).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#space-instance_method" title="#space (instance method)">- (Script::String) <strong>space</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript default operation (e.g. <code>$a $b</code>, <code>&quot;foo&quot; &quot;bar&quot;</code>).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_a-instance_method" title="#to_a (instance method)">- (Array&lt;Literal&gt;) <strong>to_a</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns the value of this literal as a list.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_bool-instance_method" title="#to_bool (instance method)">- (Boolean) <strong>to_bool</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"><code>true</code> (the Ruby boolean value).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_i-instance_method" title="#to_i (instance method)">- (Fixnum) <strong>to_i</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The integer value of this literal.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong>(opts = {}) </a>
    

    
      (also: #to_sass)
    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns the string representation of this literal as it would be output to the CSS document.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#unary_div-instance_method" title="#unary_div (instance method)">- (Script::String) <strong>unary_div</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript unary <code>/</code> operation (e.g. <code>/$a</code>).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#unary_minus-instance_method" title="#unary_minus (instance method)">- (Script::String) <strong>unary_minus</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript unary <code>-</code> operation (e.g. <code>-$a</code>).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#unary_not-instance_method" title="#unary_not (instance method)">- (Bool) <strong>unary_not</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript <code>==</code> operation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#unary_plus-instance_method" title="#unary_plus (instance method)">- (Script::String) <strong>unary_plus</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The SassScript unary <code>+</code> operation (e.g. <code>+$a</code>).</span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Node</a></h3>
  <p class="inherited"><a href="Node-1.html#dasherize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html#dasherize-instance_method" title="Sass::Script::Node#dasherize (method)">#dasherize</a>, <a href="Node-1.html#opts-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html#opts-instance_method" title="Sass::Script::Node#opts (method)">#opts</a>, <a href="Node-1.html#perform-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html#perform-instance_method" title="Sass::Script::Node#perform (method)">#perform</a></p>
<div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>) <strong>initialize</strong>(value = nil) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Creates a new literal.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Object</tt>)</span>
      
      
        <span class='name'>value</span>
      
      
        <em class="default">(defaults to: <tt>nil</tt>)</em>
      
      
        &mdash;
        The object for <tt><a href="#value-instance_method" title="Sass::Script::Literal#value (method)">#value</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


25
26
27
28</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 25</span>

def initialize(value = nil)
  @value = value
  super()
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id=""></span>
      <span id="value-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="value-instance_method">
  
    - (<tt>Object</tt>) <strong>value</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the Ruby value of the literal. The type of this value varies based on the subclass.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Object</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


20
21
22</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 20</span>

def value
  @value
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="==-instance_method">
  
    - (<tt>Boolean</tt>) <strong>==</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Compares this object with another.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Object</tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The object to compare with
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        Whether or not this literal is equivalent to <code>other</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


193
194
195</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 193</span>

def ==(other)
  eq(other).to_bool
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="_perform-instance_method">
  
    - (<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>) <strong>_perform</strong>(environment)  <span class="extras">(protected)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Evaluates the literal.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="Environment.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Environment.html" title="Sass::Environment (class)">Sass::Environment</a></tt>)</span>
      
      
        <span class='name'>environment</span>
      
      
      
        &mdash;
        The environment in which to evaluate the SassScript
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
      
      
        &mdash;
        This literal
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


236
237
238</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 236</span>

def _perform(environment)
  self
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="assert_int!-instance_method">
  
    - <strong>assert_int!</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  <h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        if this literal isn&#8217;t an integer
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


204</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 204</span>

def assert_int!; to_i end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="children-instance_method">
  
    - (<tt>Array&lt;<a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Node</a>&gt;</tt>) <strong>children</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns an empty array.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Node</a>&gt;</tt>)</span>
      
      
      
      
        &mdash;
        empty
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Node-1.html#children-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html#children-instance_method" title="Sass::Script::Node#children (method)">Node#children</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


34
35
36</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 34</span>

def children
  []
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="comma-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>comma</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>,</code> operation (e.g. <code>$a, $b</code>, <code>&quot;foo&quot;, &quot;bar&quot;</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing both literals separated by <code>&quot;, &quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


108
109
110</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 108</span>

def comma(other)
  Sass::Script::String.new("#{self.to_s},#{' ' unless options[:style] == :compressed}#{other.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="deep_copy-instance_method">
  
    - <strong>deep_copy</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Node-1.html#deep_copy-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html#deep_copy-instance_method" title="Sass::Script::Node#deep_copy (method)">Node#deep_copy</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


39
40
41</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 39</span>

def deep_copy
  dup
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="div-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>div</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>/</code> operation.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing both literals separated by <code>&quot;/&quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


148
149
150</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 148</span>

def div(other)
  Sass::Script::String.new("#{self.to_s}/#{other.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="eq-instance_method">
  
    - (<tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a></tt>) <strong>eq</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>==</code> operation. <strong>Note that this returns a <tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Sass::Script::Bool</a></tt> object, not a Ruby boolean</strong>.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a></tt>)</span>
      
      
      
      
        &mdash;
        True if this literal is the same as the other, false otherwise
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


68
69
70</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 68</span>

def eq(other)
  Sass::Script::Bool.new(self.class == other.class && self.value == other.value)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="inspect-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></tt>) <strong>inspect</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A readable representation of the literal</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></tt>)</span>
      
      
      
      
        &mdash;
        A readable representation of the literal
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


180
181
182</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 180</span>

def inspect
  value.inspect
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="minus-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>minus</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>-</code> operation.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing both literals separated by <code>&quot;-&quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


139
140
141</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 139</span>

def minus(other)
  Sass::Script::String.new("#{self.to_s}-#{other.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="neq-instance_method">
  
    - (<tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a></tt>) <strong>neq</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>!=</code> operation. <strong>Note that this returns a <tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Sass::Script::Bool</a></tt> object, not a Ruby boolean</strong>.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a></tt>)</span>
      
      
      
      
        &mdash;
        False if this literal is the same as the other, true otherwise
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


79
80
81</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 79</span>

def neq(other)
  Sass::Script::Bool.new(!eq(other).to_bool)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="null?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>null?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns whether or not this object is null.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        <code>false</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


226
227
228</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 226</span>

def null?
  false
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="options-instance_method">
  
    - (<tt>{Symbol =&gt; Object}</tt>) <strong>options</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the options hash for this node.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
      
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        if the options hash hasn&#8217;t been set. This should only happen when the literal was created outside of the parser and <tt><a href="#to_s-instance_method" title="Sass::Script::Literal#to_s (method)">#to_s</a></tt> was called on it
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


49
50
51
52
53</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 49</span>

def options
  opts = super
  return opts if opts
  raise Sass::SyntaxError.new("The #options attribute is not set on this \#{self.class}.\n  This error is probably occurring because #to_s was called\n  on this literal within a custom Sass function without first\n  setting the #option attribute.\n")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="plus-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>plus</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>+</code> operation.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing both literals without any separation
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


127
128
129
130
131
132</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 127</span>

def plus(other)
  if other.is_a?(Sass::Script::String)
    return Sass::Script::String.new(self.to_s + other.value, other.type)
  end
  Sass::Script::String.new(self.to_s + other.to_s)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="single_eq-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>single_eq</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>=</code> operation (used for proprietary MS syntax like <code>alpha(opacity=20)</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing both literals separated by <code>&quot;=&quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


118
119
120</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 118</span>

def single_eq(other)
  Sass::Script::String.new("#{self.to_s}=#{other.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="space-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>space</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript default operation (e.g. <code>$a $b</code>, <code>&quot;foo&quot; &quot;bar&quot;</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing both literals separated by a space
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


99
100
101</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 99</span>

def space(other)
  Sass::Script::String.new("#{self.to_s} #{other.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_a-instance_method">
  
    - (<tt>Array&lt;<a href="" title="Sass::Script::Literal (class)">Literal</a>&gt;</tt>) <strong>to_a</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of this literal as a list. Single literals are considered the same as single-element lists.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="" title="Sass::Script::Literal (class)">Literal</a>&gt;</tt>)</span>
      
      
      
      
        &mdash;
        The of this literal as a list
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


210
211
212</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 210</span>

def to_a
  [self]
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_bool-instance_method">
  
    - (<tt>Boolean</tt>) <strong>to_bool</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p><code>true</code> (the Ruby boolean value)</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        <code>true</code> (the Ruby boolean value)
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


185
186
187</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 185</span>

def to_bool
  true
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_i-instance_method">
  
    - (<tt>Fixnum</tt>) <strong>to_i</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The integer value of this literal</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
      
      
        &mdash;
        The integer value of this literal
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        if this literal isn&#8217;t an integer
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


199
200
201</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 199</span>

def to_i
  raise Sass::SyntaxError.new("#{self.inspect} is not an integer.")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_s-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></tt>) <strong>to_s</strong>(opts = {}) 
  

  
    <span class="aliases">Also known as:
    <span class="names"><span id='to_sass-instance_method'>to_sass</span></span>
    </span>
  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the string representation of this literal as it would be output to the CSS document.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


218
219
220</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 218</span>

def to_s(opts = {})
  raise Sass::SyntaxError.new("[BUG] All subclasses of Sass::Literal must implement #to_s.")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="unary_div-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>unary_div</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript unary <code>/</code> operation (e.g. <code>/$a</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing the literal preceded by <code>&quot;/&quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


175
176
177</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 175</span>

def unary_div
  Sass::Script::String.new("/#{self.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="unary_minus-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>unary_minus</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript unary <code>-</code> operation (e.g. <code>-$a</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing the literal preceded by <code>&quot;-&quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


166
167
168</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 166</span>

def unary_minus
  Sass::Script::String.new("-#{self.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="unary_not-instance_method">
  
    - (<tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a></tt>) <strong>unary_not</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript <code>==</code> operation. <strong>Note that this returns a <tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Sass::Script::Bool</a></tt> object, not a Ruby boolean</strong>.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a></tt>)</span>
      
      
      
      
        &mdash;
        True if this literal is the same as the other, false otherwise
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


90
91
92</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 90</span>

def unary_not
  Sass::Script::Bool.new(!to_bool)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="unary_plus-instance_method">
  
    - (<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>) <strong>unary_plus</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The SassScript unary <code>+</code> operation (e.g. <code>+$a</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Script::Literal (class)">Literal</a></tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The right-hand side of the operator
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">Script::String</a></tt>)</span>
      
      
      
      
        &mdash;
        A string containing the literal preceded by <code>&quot;+&quot;</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


157
158
159</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script/literal.rb', line 157</span>

def unary_plus
  Sass::Script::String.new("+#{self.to_s}")
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:58 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>